package com.stylefeng.guns.rest.modular.App.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

 /**
 * 抢单释放记录表
 *
 * @author 张亚林
 * @Date 2018-11-12 17:46
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
 @Data
 @TableName("task_release")
 public class TaskRelease extends Model<TaskRelease> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    protected Serializable pkVal() {
        return this.trId;
    }
    
    //扩展能查询字段
    @TableField(exist = false)
    @JsonIgnore
    private String key ;
    //开始日期
    @TableField(exist = false)
    @JsonIgnore
    private String sdate;
    //截止日期 
    @TableField(exist = false)
    @JsonIgnore
	private String edate;
    //排序字段
    @TableField(exist = false)
    @JsonIgnore
	private String  sortField ;
	//排序	
	@TableField(exist = false)
    @JsonIgnore
	private String sortOrder;

	
    @ApiModelProperty(value = "ID")
    @TableField("tr_id")
    private String trId;     //ID

    @ApiModelProperty(value = "抢单司机")
    @TableField("di_id")
    private String diId;     //抢单司机

    @ApiModelProperty(value = "抢单时间")
    @TableField("tr_take_time")
    private Date trTakeTime;     //抢单时间

    @ApiModelProperty(value = "释放时间")
    @TableField("tr_release_time")
    private Date trReleaseTime;     //释放时间

    @ApiModelProperty(value = "释放原因ID")
    @TableField("trr_id")
    private String trrId;     //释放原因ID

    @ApiModelProperty(value = "任务ID")
    @TableField("ti_id")
    private String tiId;     //任务ID
}
